Integrand size = 17, antiderivative size = 70 \[ \int x^3 \cot \left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\frac {i x^4}{4}-\frac {1}{2} i x^4 \operatorname {Hypergeometric2F1}\left (1,-\frac {2 i}{b d n},1-\frac {2 i}{b d n},e^{2 i a d} \left (c x^n\right )^{2 i b d}\right ) \]
[Out]
Time = 0.07 (sec) , antiderivative size = 70, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {4594, 4592, 470, 371} \[ \int x^3 \cot \left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\frac {i x^4}{4}-\frac {1}{2} i x^4 \operatorname {Hypergeometric2F1}\left (1,-\frac {2 i}{b d n},1-\frac {2 i}{b d n},e^{2 i a d} \left (c x^n\right )^{2 i b d}\right ) \]
[In]
[Out]
Rule 371
Rule 470
Rule 4592
Rule 4594
Rubi steps \begin{align*} \text {integral}& = \frac {\left (x^4 \left (c x^n\right )^{-4/n}\right ) \text {Subst}\left (\int x^{-1+\frac {4}{n}} \cot (d (a+b \log (x))) \, dx,x,c x^n\right )}{n} \\ & = \frac {\left (x^4 \left (c x^n\right )^{-4/n}\right ) \text {Subst}\left (\int \frac {x^{-1+\frac {4}{n}} \left (-i-i e^{2 i a d} x^{2 i b d}\right )}{1-e^{2 i a d} x^{2 i b d}} \, dx,x,c x^n\right )}{n} \\ & = \frac {i x^4}{4}-\frac {\left (2 i x^4 \left (c x^n\right )^{-4/n}\right ) \text {Subst}\left (\int \frac {x^{-1+\frac {4}{n}}}{1-e^{2 i a d} x^{2 i b d}} \, dx,x,c x^n\right )}{n} \\ & = \frac {i x^4}{4}-\frac {1}{2} i x^4 \operatorname {Hypergeometric2F1}\left (1,-\frac {2 i}{b d n},1-\frac {2 i}{b d n},e^{2 i a d} \left (c x^n\right )^{2 i b d}\right ) \\ \end{align*}
Both result and optimal contain complex but leaf count is larger than twice the leaf count of optimal. \(220\) vs. \(2(70)=140\).
Time = 4.27 (sec) , antiderivative size = 220, normalized size of antiderivative = 3.14 \[ \int x^3 \cot \left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=-\frac {x^4 \left (2 e^{2 i d \left (a+b \log \left (c x^n\right )\right )} \operatorname {Hypergeometric2F1}\left (1,1-\frac {2 i}{b d n},2-\frac {2 i}{b d n},e^{2 i d \left (a+b \log \left (c x^n\right )\right )}\right )+(-2 i+b d n) \left (\cot \left (d \left (a+b \log \left (c x^n\right )\right )\right )-\cot \left (d \left (a-b n \log (x)+b \log \left (c x^n\right )\right )\right )+i \operatorname {Hypergeometric2F1}\left (1,-\frac {2 i}{b d n},1-\frac {2 i}{b d n},e^{2 i d \left (a+b \log \left (c x^n\right )\right )}\right )+\csc \left (d \left (a+b \log \left (c x^n\right )\right )\right ) \csc \left (d \left (a-b n \log (x)+b \log \left (c x^n\right )\right )\right ) \sin (b d n \log (x))\right )\right )}{-8 i+4 b d n} \]
[In]
[Out]
\[\int x^{3} \cot \left (d \left (a +b \ln \left (c \,x^{n}\right )\right )\right )d x\]
[In]
[Out]
\[ \int x^3 \cot \left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\int { x^{3} \cot \left ({\left (b \log \left (c x^{n}\right ) + a\right )} d\right ) \,d x } \]
[In]
[Out]
\[ \int x^3 \cot \left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\int x^{3} \cot {\left (a d + b d \log {\left (c x^{n} \right )} \right )}\, dx \]
[In]
[Out]
\[ \int x^3 \cot \left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\int { x^{3} \cot \left ({\left (b \log \left (c x^{n}\right ) + a\right )} d\right ) \,d x } \]
[In]
[Out]
\[ \int x^3 \cot \left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\int { x^{3} \cot \left ({\left (b \log \left (c x^{n}\right ) + a\right )} d\right ) \,d x } \]
[In]
[Out]
Timed out. \[ \int x^3 \cot \left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\int x^3\,\mathrm {cot}\left (d\,\left (a+b\,\ln \left (c\,x^n\right )\right )\right ) \,d x \]
[In]
[Out]